#if !defined(AFX_TASKFORMDLG_H__A4946641_F66F_11D6_89E2_F8D740762C52__INCLUDED_)
#define AFX_TASKFORMDLG_H__A4946641_F66F_11D6_89E2_F8D740762C52__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// TaskFormDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTaskFormDlg dialog

class CTaskFormDlg : public CDialog
{
// Construction
public:
	CString m_WindowText;
	CString m_Names[10];
	CTaskFormDlg(CWnd* pParent = NULL);   // standard constructor
	int m_NameIndex;

// Dialog Data
	//{{AFX_DATA(CTaskFormDlg)
	enum { IDD = IDD_TASKFORMDLG };
	CButton	m_ctlFelfugg;
	CComboBox	m_ctlStatus;
	CEdit	m_ctlWarnPeriod;
	CEdit	m_ctlWarnBefore;
	CEdit	m_ctlStartDateTime;
	CEdit	m_ctlPriority;
	CComboBox	m_ctlResponsible;
	CEdit	m_ctlEndPerson;
	CEdit	m_ctlEndDateTime;
	CButton	m_ctlComplete;
	CEdit	m_ctlDeadline;
	CEdit	m_ctlWaitFor;
	CEdit	m_ctlTopic;
	CComboBox	m_ctlConcerns;
	CEdit	m_ctlDescription;
	CEdit	m_ctlNotes;
	CString	m_Concerns;
	CString	m_Deadline;
	CString	m_Description;
	CString	m_EndDate;
	CString	m_EndPerson;
	CString	m_Notes;
	CString	m_Priority;
	CString	m_Responsible;
	CString	m_StartDate;
	CString	m_StartPerson;
	CString	m_TaskID;
	CString	m_Topic;
	CString	m_WaitFor;
	CString	m_WarnBefore;
	CString	m_WarnPeriod;
	CString	m_ParentTaskID;
	CString	m_Status;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTaskFormDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	BOOL IsDateValid(CString* date);
	void CheckNewData(CString* field, CString* value, int type, int min, int max, BOOL enEmpty);
	CString* ShowCalendar(CString *oldDate);
	void OnEditCut();
	void GetDateTime(CString* s);
	int m_currentControl;

	// Generated message map functions
	//{{AFX_MSG(CTaskFormDlg)
	afx_msg void OnEditCopy();
	afx_msg void OnKillfocusNotes();
	afx_msg void OnSetfocusNotes();
	afx_msg void OnKillfocusDescription();
	afx_msg void OnSetfocusDescription();
	afx_msg void OnEditPaste();
	afx_msg void OnKillfocusConcerns();
	afx_msg void OnSetfocusConcerns();
	afx_msg void OnKillfocusDeadline();
	afx_msg void OnSetfocusDeadline();
	afx_msg void OnKillfocusTopic();
	afx_msg void OnSetfocusTopic();
	afx_msg void OnKillfocusWaitfor();
	afx_msg void OnSetfocusWaitfor();
	afx_msg void OnAdddate();
	afx_msg void OnComlete();
	afx_msg void OnDeadlinecal();
	afx_msg void OnStartcal();
	afx_msg void OnEndcal();
	virtual int OnInitDialog();
	afx_msg void OnOk();
	afx_msg void OnKillfocusPriority();
	afx_msg void OnKillfocusWarnbefore();
	afx_msg void OnKillfocusWarnperiod();
	afx_msg void OnKillfocusStartdate();
	afx_msg void OnKillfocusEnddate();
	afx_msg void OnFelfugg();
	afx_msg void OnSelendokTaskstatus();
	afx_msg void OnAddoneday();
	afx_msg void OnAddoneweek();
	afx_msg void OnDelDeadline();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TASKFORMDLG_H__A4946641_F66F_11D6_89E2_F8D740762C52__INCLUDED_)
